package top.jiachunlei.iterator;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/9 20:49
 */
public class IteratorClient
{
    public static void main(String[] args)
    {
        NameRepository repository = new NameRepository();
        for (Iterator iter = repository.getIterator(); iter.hasNext(); )
        {
            String name = (String) iter.next();
            System.out.println("Name : " + name);
        }
    }
}
